package com.example.demo.controller.data;

import lombok.Data;

import java.util.LinkedHashMap;
import java.util.Map;

@Data
public class AnalysisResultDto {
    private String nickname;
    private Map<String, Map<String, ChannelProductStats>> channelProductMap = new LinkedHashMap<>();
    private Double totalAmount = 0.0;
    private Integer totalCount = 0;
    // 新增退款相关字段
    private Map<String, Map<String, ChannelProductStats>> refundChannelProductMap = new LinkedHashMap<>();
    private Double totalRefundAmount = 0.0;
    private Integer totalRefundCount = 0;
    private Double totalIncomeAmount = 0.0;
    private Double returnIncomeAmount = 0.0;
    @Data
    public static class ChannelProductStats {
        private Integer count = 0;
        private Double amount = 0.0;
        private Double inCome = 0.0;

    }
}